﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="addChildren.aspx.vb" Inherits="OAR.addChildren" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .auto-style1 {
            font-size: larger;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" >
            <Columns>
                <asp:BoundField DataField="workerNrc" HeaderText="Worker's NRC" SortExpression="workerNrc" />
                <asp:BoundField DataField="childName" HeaderText="Child's Name" SortExpression="childName" />
                <asp:BoundField DataField="childDob" HeaderText="Child's D.O.B" SortExpression="childDob" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="ChildDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ClaimsConnectionString %>" ProviderName="<%$ ConnectionStrings:ClaimsConnectionString.ProviderName %>" SelectCommand="SELECT [workerNrc], [childName], [childDob] FROM [Children] WHERE ([workerNrc] = ?) ORDER BY [childDob]">
            <SelectParameters>
                <asp:QueryStringParameter Name="workerNrc" QueryStringField="workerNRC" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <span class="auto-style1">Please add Children details below, for each child</span></p>
    <p>
        Child&#39;s Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_childName" runat="server"></asp:TextBox>
    </p>
    <p>
        Child&#39;s Date of Birth (DD/MM/YYYY)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_childDob" runat="server"></asp:TextBox>
    </p>
    <p style="margin-left: 80px">
        <asp:Button ID="Button1" runat="server" Text="Add Child Details" />
        <br />
    </p>
</asp:Content>
